﻿<telerik:RadWindow x:Name="radWindow"
                   x:Class="Rio.Framework.Pages.ChildWindows.DownloadFolderChildWindow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   mc:Ignorable="d"
                   d:DesignHeight="300"
                   d:DesignWidth="400"
                   Height="200"
                   Width="500"
                   Header="{Binding WindowTitle, ElementName=radWindow, Mode=TwoWay}"
                   ResizeMode="NoResize"
                   WindowStartupLocation="CenterScreen"
                   KeyUp="RadWindow_KeyUp">

    <Grid x:Name="LayoutRoot"
          Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
            <TextBlock HorizontalAlignment="Center"
                       TextWrapping="Wrap"
                       Text="{Binding TotalFoldersProcessed, ElementName=radWindow, Mode=TwoWay}"
                       VerticalAlignment="Center" />
            <TextBlock HorizontalAlignment="Center"
                       TextWrapping="Wrap"
                       Text="/"
                       VerticalAlignment="Center" />
            <TextBlock HorizontalAlignment="Center"
                       TextWrapping="Wrap"
                       Text="{Binding TotalFolders, ElementName=radWindow, Mode=TwoWay}"
                       VerticalAlignment="Center" />
            <TextBlock HorizontalAlignment="Center"
                       TextWrapping="Wrap"
                       VerticalAlignment="Center"
                       Margin="10,0,0,0"
                       Text="{Binding FoldersProcessedLabel, ElementName=radWindow, Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Orientation="Horizontal"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Grid.Row="1">
            <telerik:RadButton Content="{Binding DownloadArchiveButtonLabel, ElementName=radWindow, Mode=TwoWay}"
                               Click="Button_Click"
                               HorizontalAlignment="Center"
                               VerticalAlignment="Center"
                               Width="175"
                               Height="30"
                               Margin="0,10" />
        </StackPanel>
    </Grid>
</telerik:RadWindow>
